 #{extends 'main.html' /}
<h3>  ${task.title} </h3>
<hr>
<br>
<lable>  ${task.content} </lable>
<br>
<hr>
<h3>Updating Options</h3>
<form action="@{Application.taskUpdate(did,pid,task.id)}" method="post">
	 state 	 <select name="state">
	 <option value="1">new</option>
	 <option value="2">started</option>
	 <option value="3">bending</option>
	 <option value="4">done</option>
	 <option value="5">reopen</option>
	 </select>
	 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	 priority
	 <select name="priority">
	 <option value="1">medium</option>
	 <option value="2">low</option>
	 <option value="3">high</option>
	 </select>
	 <input name="comment" type="submit" value="update" />
	 </form>
<br>	 
<br>
<h3>Adding comment</h3>

<form action="@{Application.addTaskComment(did,pid,task.id)}" method="post">
<textarea name="content" cols="20" rows="2"></textarea><br>
<input name="comment" type="submit" value="comment" />
</form>

<hr>
<br>
#{if task.comments}
#{list items:task.comments, as:'comment'}
&nbsp;commented by:&nbsp;
${comment.user.nickName}
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at: ${comment.pDate}
<p>&nbsp;</p>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;${comment.content}
<p>&nbsp;</p>
<hr/>
#{/list}
#{/if}
#{else}
No comments added yet
#{/else}


